<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
	<script src="./lib/vue.js"></script>
</head>
<body>

</body>
<script>
	// vm是Vue的实例
	const data = {
		age:12,
		username:"zhangSan"
	};
	const vm = new Vue({
		data
	});
	// $data即是配置对象下的data属性。
	console.log(vm.$data === data);
	console.log(vm.$data.age,vm.$data.username);// 12 zhangsan
	console.log(vm.age,vm.username);// 12 zhangsan
	vm.age = 100;
	console.log(vm.$data.age);// 100
	
</script>
</html>